//
//  OpShopView.m
//  LoveBeeProject
//
//  Created by popsicle on 2017/1/4.
//  Copyright © 2017年 斯芬克斯. All rights reserved.
//

#import "OpShopView.h"
#import "MyStoreTableViewCell.h"

@interface OpShopView () <UINavigationControllerDelegate>

@end

@implementation OpShopView

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    //设置导航条右边的文字
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"加入" style:UIBarButtonItemStylePlain target:self action:nil];
   
    
    //创建商店控制器
    MyStoreTableViewCell * storeView = [MyStoreTableViewCell storeView];
    
    [self.view addSubview:storeView];
    
    //隐藏UINavigationBar
//    [self.navigationController setNavigationBarHidden:YES animated:YES];
    
    
    
    
    
}


//- (void) navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
//    // 如果进入的是当前视图控制器
//    if (viewController == self) {
//        // 背景设置为黑色
//        self.navigationController.navigationBar.tintColor = [UIColor colorWithRed:0.000 green:0.000 blue:0.000 alpha:1.000];
//        // 透明度设置为0.3
//        self.navigationController.navigationBar.alpha = 0.300;
//        // 设置为半透明
//        self.navigationController.navigationBar.translucent = YES ;
//    } else {
//        // 进入其他视图控制器
//        self.navigationController.navigationBar.alpha = 1;
//        // 背景颜色设置为系统 默认颜色
//        self.navigationController.navigationBar.tintColor = nil;
//        self.navigationController.navigationBar.translucent = NO; 
//    } 
//}





- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
